<?php
require_once("Tpl/header.html");
?>
        <div id="main">
            <div class="header">
                <h1>AddProblem</h1>
            </div>
            <div class="content">
                <form action="/index.php/Problem/addproblem" method="post" class="pure-form pure-form-aligned">
                    <div class="error">{$error}</div>
                    <fieldset>
                        <div class="">
                            <label for "subid">课程名称</label>
                            <select id="subid" name="subid">
                                <?php
                                foreach ($sublist as $key => $value) {
                                ?><option value="<?php echo $value["SubId"] ?>"><?php echo $value["SubName"] ?></option>
                                <?php } ?>
                            </select>
                        </div>
                        <div class="">
                            <label for "detail">题目内容</label>
                            <textarea name="detail" id="detail" class="xheditor" cols="100" rows="10">test</textarea>
                        </div>
                        <div class="">
                            <label for="length">题目时长</label>
                            <input type="text" id="length" name="length" placeholder="SubName" >
                        </div>
                        <div class="pure-controls">
                            <button type="submit" class="pure-button pure-button-primary">Add</button>
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
